using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Controls_Specile : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            GetSpecialProduct();
    }
    private void GetSpecialProduct()
    {
        DataTable tbl = null;
        if (HttpContext.Current.Cache["SpecialProduct"] != null)
            tbl = (DataTable)HttpContext.Current.Cache["SpecialProduct"];
        else
        {
            tbl = FShop.BAL.Product_BAL.Get_ProductAsPaging(1, 4, "Pro_ID DESC", "*", "Pro_IsDiscount=1", "");
        }
        DataList1.DataSource = tbl;
        DataList1.DataBind();
    }
}
